package com.xiaozhichao.provider.controller;

import com.xiaozhichao.rpc.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:xiaozhichao
 * @date:2018/12/29
 */
@RestController
@RequestMapping("/providerHello")
public class ProviderHelloController {

    @Autowired
    DemoService demoService;

    @RequestMapping("/sayHello")
    public String hello(String name) {
        return demoService.sayHello(name);
    }


}
